From: Keir Fraser Date: Tue, 15 Apr 2008 15:04:30 +0000 (+0100) Subject: ioemu: COW driver flush method should return an int. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~184 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=fb6dd9a13061ca956b00f404831d8e993870c136;p=xen.git ioemu: COW driver flush method should return an int. Signed-off-by: Keir Fraser --- diff --git a/tools/ioemu/block-cow.c b/tools/ioemu/block-cow.c index 07c8a7bf16..eeee9a1cc4 100644 --- a/tools/ioemu/block-cow.c +++ b/tools/ioemu/block-cow.c @@ -246,10 +246,11 @@ static int cow_create(const char *filename, int64_t image_sectors, return 0; } -static void cow_flush(BlockDriverState *bs) +static int cow_flush(BlockDriverState *bs) { BDRVCowState *s = bs->opaque; fsync(s->fd); + return 0; } BlockDriver bdrv_cow = {